package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.mingqijia.gassafety.db.entity.annotation.OperateLogFiled;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 页面字段展示模式
 * </p>
 *
 * @author lishiying
 * @since 2022-09-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_field_template")
@ApiModel(value="FieldTemplate对象", description="页面字段展示模式")
public class FieldTemplate extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "唯一编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @OperateLogFiled(name = "模板类型", codeName = "1-模板一;2-模板二;")
    @ApiModelProperty(value = "模板类型 ，1-模板一，2-模板二")
    @TableField("template_type")
    @NotNull(message = "模板类型不能为空")
    private Integer templateType;

    @OperateLogFiled(name = "报警器安装", codeName = "1-燃气工单;2-延伸业务工单;")
    @ApiModelProperty(value = "报警器安装：1-新时刻助手-燃气工单，2-新时刻助手-延伸业务工单")
    @TableField("work_system_type")
    private Integer workSystemType;

    @OperateLogFiled(name = "功能区域分配", codeName = "1-自动分配，2-自定义分配（默认为1）")
    @ApiModelProperty(value = "功能区域分配， 1-自动分配，2-自定义分配（默认为1）")
    @TableField("func_area_allocat")
    private Integer funcAreaAllocat;

    @OperateLogFiled(name = "报警处理", codeName = "1-燃气工单;2-延伸业务工单;3-智能管网")
    @ApiModelProperty(value = "报警处理： 1-新时刻助手-燃气工单，2-新时刻助手-延伸业务工单，3-佛燃能源-智能管网")
    @TableField("alarm_handle_type")
    private Integer alarmHandleType;

    @OperateLogFiled(name = "故障处理", codeName = "1-燃气工单;2-延伸业务工单")
    @ApiModelProperty(value = "故障处理： 1-新时刻助手-燃气工单，2-新时刻助手-延伸业务工单")
    @TableField("broken_handle_type")
    private Integer brokenHandleType;

    @OperateLogFiled(name = "安防设备工单系统类型", codeName = "1-MBP，2-老时刻助手 3-师傅帮个忙")
    @ApiModelProperty(value = "安防设备工单系统类型，1-MBP，2-老时刻助手 3-师傅帮个忙")
    @TableField("sk_work_system_type")
    private Integer skWorkSystemType;
}
